package pub.tbc.hh.mall.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @auth tbc on 2018/5/20.
 */
@Mapper
public interface WaresMapper {

    @Select("select wares_name waresName, wares_descrip waresDescrip, wares_digest waresDigest, is_new isNew " +
            "from t_wares where type_id = #{typeId}")
    Map<String, Object> queryWaresByTypeId(long typeId);

    @Select("select * from t_wares where id = #{waresId}")
    Map<String, Object> queryWaresInfoById(long waresId);



}
